er
> [before=\blank\blackrule\startnarrower\BufferStyle,
> after=\stopnarrower\blackrule\blank]
>
> %% alternatively define custom buffers
> \definebuffer
> [foobar]
>
> \setupblackrules
> [width=1cm,
>height=1pt,
>color=gray]
>
> \defi
er has before and after keys which can be used. Example:
\setupbuffer
[before=\blank\blackrule\startnarrower\BufferStyle,
after=\stopnarrower\blackrule\blank]
%% alternatively define custom buffers
\definebuffer
[foobar]
\setupblackrules
[width=1cm,
height=1pt,
color=gray]
\definehighli
; or
> \hairline[color=red]
\setupblackrules
[height=1pt,
color=blue,
width=\textwidth]
\starttext
\blackrule
\blackrule [color=red, height=1ex, width=5cm]
\stoptext
http://wiki.contextgard
hanges the vertical position of the content (by putting it
into an \hbox and changing the height/depth values).
\setupblackrules[width=2cm,height=2cm]
\setuplayout[grid=yes]\showgrid
\starttext
XXX {\blackrule}
XXX \tbox{\blackrule}
XXX \bbox{\blackrule}
XXX
\stoptext
Wo
On 5/14/2013 11:00 PM, Sietse Brouwer wrote:
\setupcolors[state=start]
this is no longer needed in mkiv where colors are enabled by default
\setupblackrules[depth=\strutdepth,height=\strutheight,width=1mm,color=red]
...
.. added to test zip
[state=start]
\setupblackrules[depth=\strutdepth,height=\strutheight,width=1mm,color=red]
\starttext
\ruledhbox
{A
\framed[width=2cm,align=middle,location=]
{location\\equals\\(nothing)}%
\blackrule
\framed[width=2cm,align=middle,location=depth]
{location\\equals\\depth
. For the prefix value it works.
\setupblackrules
[width=4cm, height=1cm]
%% prefix is applied, way is not
\setupcaptions
[prefix=no,
way=bytext]
%% prefix and way are applied
%% \setupcaption
%% [figure, table]
%% [prefix=no,
%%way=bytext]
\starttext
\dorecurse{2}{%
\startchapter
Hi,
the `way` setting cannot be applied globally to all floats using
`\setupcaptions`. For the `prefix` value it works. Can this be
fixed?
\setupblackrules
[width=4cm, height=1cm]
%% prefix is applied, way is not
%% \setupcaptions
%% [prefix=no,
%% way=bytext]
%% prefix and way is applied
of how it should look like.
I could come up with a hackish solution on my own but maybe someone
has an idea how to achieve this with built-in support.
Marco
floatmargin.pdf
Description: Adobe PDF document
\setupexternalfigures
[height=2cm]
\setupblackrules
[height=2cm]
\def\graph
Hi,
the following code does not work in mkiv (also tested with latest beta).
\setuppagenumber[state=stop]
\starttext
\setupcombinations[distance=10mm,inbetween=\vskip10mm]
%\setupcombinations[distance=10mm,inbetween={\blank[10mm]}]
\setupblackrules[width=40mm,height=40mm]
\startcombination[2
[10mm]}]
\setupblackrules[width=40mm,height=40mm]
\startcombination[2*2]
{\blackrule}{}
{\blackrule}{}
{\blackrule}{}
{\blackrule}{}
\stopcombination
\stoptext
The inbetween key controls the space between the content and caption of a
entry, the vertical distance between the entries
]
%\setupcombinations[distance=10mm,inbetween={\blank[10mm]}]
\setupblackrules[width=40mm,height=40mm]
\startcombination[2*2]
{\blackrule}{}
{\blackrule}{}
{\blackrule}{}
{\blackrule}{}
\stopcombination
\stoptext
The inbetween key controls the space between the content and caption of a
entry
Hello,
What is the difference between a and b alternatives in \blackrule?
http://wiki.contextgarden.net/Reference/en/setupblackrules#Description
Regards,
Vyatcheslav
___
If your question is of interest to others
Am 12.04.10 00:07, schrieb Vyatcheslav Yatskovsky:
Hello,
What is the difference between a and b alternatives in \blackrule?
http://wiki.contextgarden.net/Reference/en/setupblackrules#Description
Can you see it?
\setupblackrules[width=2cm]
\starttext
text \blackrules[alternative=a] tex\par
, \blackrules can be of any color. The default
options are
\setupblackrules
[\c!n=3,
\c!width=1em,
\c!height=1ex,
\c!depth=\!!zeropoint,
\c!alternative=\c!a,
\c!distance=.25ex,
\c!color=]
Aditya
___
If your
]?
%D These \blackrules[alternativevariant=b,n=10,distance=.2em,width=4cm]
are quite clear.
%D \stopbuffer
Despite its name, \blackrules can be of any color. The default options are
\setupblackrules
[\c!n=3,
\c!width=1em,
\c!height=1ex,
\c!depth=\!!zeropoint,
\c!alternative=\c
# \setlayerframed
# \setlocalhsize
# \setstrut
\settextvariable[name]{text}
\setupalign[options]
\setuparranging[options]
# \setupattachments
\setupbackground[options]
\setupbackgrounds[position][position][state][settings]
\setupblackrules[options]
\setupblank[options]
\setupblock[names][options
\setupblackrules[alternative=c]
would mark c as invalid (only a and b are possible).
And already the first obstacle I came across: How can I define a
regexp matching the
[ ... ]
area? Note that \firstcommand[ command={\secondcommand[x]}, text=$]$ ]
Quite some work to do ... but perhaps doable one
18 matches
Mail list logo